package net.lunjin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import net.lunjin.bean.RemarkTemplate;
import net.lunjin.dao.RemarkTemplateDao;
import net.lunjin.service.RemarkTemplateService;

public class RemarkTemplateServiceImpl implements RemarkTemplateService {

	@Autowired
	private RemarkTemplateDao remarkTemplateDao;
	
	@Override
	public List<RemarkTemplate> getAll() throws Exception {
		return remarkTemplateDao.findAll();
	}

	@Override
	public boolean insert(RemarkTemplate remarkTemplate) throws Exception {
		return remarkTemplateDao.insert(remarkTemplate);
	}

	@Override
	public boolean delete(RemarkTemplate remarkTemplate) throws Exception {
		return remarkTemplateDao.delete(remarkTemplate);
	}

	
	
}
